/*
 * @param location the location between origins and destination
 * for example:
 * {origin:"origin.latitude,origin.langitude",destination:"destination.latitude,destination.langitude"}
 * 
 * @return the distance and duration by json
 *  for example:
 *  {
 *  "resultCode":0,
 *  "distance":{"text":"542 km","value":542384},
 *  "duration":{"text":"5 hours 13 mins","value":18774}
 *  }
 */
exports.getDistance = function getDistance(params, callback) {
	var gmap = require('googlemaps');
	gmap.directions(
			params.origin,
			params.destination,
			callback,
			params.sensor,
			alternativers = false
			);
}